package com.wish.g04.base.vo;

import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class IdNamePair<ID,NAME> {

    private ID id;
    private NAME name;

    public IdNamePair() {

    }

    public IdNamePair(ID id, NAME name) {
        this.id = id;
        this.name = name;
    }

    public static <ID, NAME> IdNamePair<ID, NAME> of(ID id, NAME name) {
        return new IdNamePair<ID, NAME>(id, name);
    }
}
